/*

4. Write a program that produces a stray pointer.
*/

#include <iostream.h>

int main() {
	int *pInt = new int;
	*pInt = 10;
	delete pInt;
	int *p2Int = new int;
	*p2Int = 30;
	*pInt = 20;
	cout << *p2Int << endl;
	return 0;
}
